cd /d %~dp0

pip install esptool -i https://pypi.tuna.tsinghua.edu.cn/simple

esptool.exe -b 115200 erase_flash || esptool.py -b 115200 erase_flash
esptool.exe --chip esp8266 --baud 115200 write_flash --flash_size=detect 0 webtouch_esp8266.ino.bin || esptool.py --chip esp8266 --baud 115200 write_flash --flash_size=detect 0 webtouch_esp8266.ino.bin

esptool.exe run || esptool.py run

pause
